#include<stdio.h>

long long n,k;
int arr[100000];

int cal(int x)
{
  int sum=0;
  for(int i=0;i<n;i++)
  {
    sum+=arr[i]/x;
  }
  return sum;
}

int main()
{
    scanf("%lld %lld",&n,&k);
    for(int i=0;i<n;i++)
    {
        scanf("%d",&arr[i]);
    }
    int left=0;
    int right=1e8;
    while(left<right)
    {
        int mid=left+(right-left+1)/2;
        if(cal(mid)>=k)  left=mid;
        else  right=mid-1;
    }
    printf("%d",left);
}